Improved get-or-create-variable logic#2199
Merged
EgorkaKulikov merged 1 commit intomainfrom May 15, 2023
Merged
Conversation
6d12b80 to
8846ff9
Compare
8846ff9 to
a6a3e72
Compare
This was
linked to
issues
May 11, 2023
Damtev
requested changes
May 15, 2023
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/Domain.kt
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/Domain.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree/CgSpringVariableConstructor.kt
Show resolved
Hide resolved
utbot-js/src/main/kotlin/framework/codegen/model/constructor/tree/JsCgVariableConstructor.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/Domain.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/domain/context/CgContext.kt
Outdated
Show resolved
Hide resolved
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/tree/CgSpringVariableConstructor.kt
Outdated
Show resolved
Hide resolved
1644040 to
6bcc296
Compare
6bcc296 to
f91e900
Compare
EgorkaKulikov
approved these changes
May 15, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces extended version of UtModel, UtModelWrapper. For code-generation purposes we pack UtModels with test set ids and execution ids. It was made primarily for shared among all test methods global variables (i.e. class fields).
Fixes #2104, #2107, #2196
How to test
Automated tests
Run utbot-samples.
Manual tests
Open pet-clinic project and generate tests for OwnerController and VetController. There must be no unused global variables, recreated global variables.
Open non-spring project and generate some tests. There everything must be as usual.